<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:tns="http://schemas.datacontract.org/2004/07/HWmanagementServer" elementFormDefault="qualified" targetNamespace="http://schemas.datacontract.org/2004/07/HWmanagementServer" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:complexType name="UserModel">
    <xs:sequence>
      <xs:element minOccurs="0" name="Email" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Name" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Neptun" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Password" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Rank" type="xs:int" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="UserModel" nillable="true" type="tns:UserModel" />
  <xs:complexType name="SubjectModel">
    <xs:sequence>
      <xs:element minOccurs="0" name="name" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="neptun" nillable="true" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="SubjectModel" nillable="true" type="tns:SubjectModel" />
  <xs:complexType name="ArrayOfSubjectModel">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="SubjectModel" nillable="true" type="tns:SubjectModel" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfSubjectModel" nillable="true" type="tns:ArrayOfSubjectModel" />
  <xs:complexType name="ResultModel">
    <xs:sequence>
      <xs:element minOccurs="0" name="comment" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="grade" type="xs:int" />
      <xs:element minOccurs="0" name="homeworkid" type="xs:int" />
      <xs:element minOccurs="0" name="id" type="xs:int" />
      <xs:element minOccurs="0" name="userid" nillable="true" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ResultModel" nillable="true" type="tns:ResultModel" />
  <xs:complexType name="ArrayOfFileModel">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="FileModel" nillable="true" type="tns:FileModel" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfFileModel" nillable="true" type="tns:ArrayOfFileModel" />
  <xs:complexType name="FileModel">
    <xs:sequence>
      <xs:element minOccurs="0" name="id" type="xs:int" />
      <xs:element minOccurs="0" name="name" nillable="true" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="FileModel" nillable="true" type="tns:FileModel" />
  <xs:complexType name="ArrayOfHomeworkModel">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="HomeworkModel" nillable="true" type="tns:HomeworkModel" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfHomeworkModel" nillable="true" type="tns:ArrayOfHomeworkModel" />
  <xs:complexType name="HomeworkModel">
    <xs:sequence>
      <xs:element minOccurs="0" name="courseid" type="xs:int" />
      <xs:element minOccurs="0" name="deadline" type="xs:dateTime" />
      <xs:element minOccurs="0" name="fileid" type="xs:int" />
      <xs:element minOccurs="0" name="id" type="xs:int" />
      <xs:element minOccurs="0" name="shortdesc" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="title" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="userid" nillable="true" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="HomeworkModel" nillable="true" type="tns:HomeworkModel" />
  <xs:complexType name="ArrayOfUserModel">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="UserModel" nillable="true" type="tns:UserModel" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfUserModel" nillable="true" type="tns:ArrayOfUserModel" />
  <xs:complexType name="MessageModel">
    <xs:sequence>
      <xs:element minOccurs="0" name="id" type="xs:int" />
      <xs:element minOccurs="0" name="is_read" type="xs:boolean" />
      <xs:element minOccurs="0" name="messageBody" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="receiver" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="sender" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="subject" nillable="true" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="MessageModel" nillable="true" type="tns:MessageModel" />
  <xs:complexType name="ArrayOfMessageModel">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="MessageModel" nillable="true" type="tns:MessageModel" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfMessageModel" nillable="true" type="tns:ArrayOfMessageModel" />
  <xs:complexType name="ArrayOfLogModel">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="LogModel" nillable="true" type="tns:LogModel" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfLogModel" nillable="true" type="tns:ArrayOfLogModel" />
  <xs:complexType name="LogModel">
    <xs:sequence>
      <xs:element minOccurs="0" name="action" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="date" type="xs:dateTime" />
      <xs:element minOccurs="0" name="id" type="xs:int" />
      <xs:element minOccurs="0" name="userid" nillable="true" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="LogModel" nillable="true" type="tns:LogModel" />
  <xs:complexType name="ArrayOfCourseModel">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="CourseModel" nillable="true" type="tns:CourseModel" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfCourseModel" nillable="true" type="tns:ArrayOfCourseModel" />
  <xs:complexType name="CourseModel">
    <xs:sequence>
      <xs:element minOccurs="0" name="id" type="xs:int" />
      <xs:element minOccurs="0" name="semester" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="subjectid" nillable="true" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="CourseModel" nillable="true" type="tns:CourseModel" />
</xs:schema>